package com.tsd.common.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 文件表扩展
 *
 * @author huawei
 * @date 2021/08/08 20:40:38
 */
@ApiModel(description = "文件表扩展")
public class CommonFileExt extends CommonFile implements Serializable {
    @ApiModelProperty(value = "状态，1-已用，0-未用")
    final public static Integer StateUsed = 1;
    final public static Integer StateNotUsed = 0;
    /**
     * 默认的icon图片的宽度
     */
    public final static int ICON_PIC_WIDTH = 100;
    public final static String ICON_TAG = "_icon";
    /**
     * 业务类型，导入，主要是为了导入数据的文件保存到本地临时即可
     */
    public final static String BIZ_TYPE_IMPORT = "import";

    public static final String EXCEL_TEMPLATE_BIZ_TYPE = "export_template";

    private String file_type;

    public String getFile_type() {
        return file_type;
    }

    public void setFile_type(String file_type) {
        this.file_type = file_type;
    }

    public void reset4NewObj() {
        setId(null);
        setSid(null);
        setUpdate_date(null);
        setUpdator_name(null);
        setUpdator_sid(null);
    }
}